home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 96 / PC Zone #096.7z / Dppcz1200.mdf / Demos / Gunlok / data1.cab / Program_Executable_Files / scripts / missile_launcher.gsh < prev    next >
Text File  |  2000-09-09  |  6KB  |  277 lines

  1. // defines the weapon Wpn_MissileLauncher
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_MISSILE_LAUNCHER_GSH
  8. #define INCLUDED_MISSILE_LAUNCHER_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. light Lit_Missile
  13. {
  14.     red             10
  15.     green           10
  16.     blue            10
  17.     specular red    5
  18.     specular green    5
  19.     specular blue    5
  20.     range           256
  21. }
  22.  
  23. pgenerator Pgn_Missile
  24. {
  25.     type smoke
  26.     life infinite    // well, it lasts as longs as the projectile it's attached to anyway
  27.     rate 10
  28.     // stream direction
  29.     x 0 y 0 z 0
  30.     // particle colour
  31.     red 0.1 green 0.1 blue 0.1 alpha 0.5
  32.     // scale
  33.     start scale 0.1    end scale 2.0
  34.     spin 10000
  35. }
  36.  
  37. shape Shp_Missile
  38. {
  39.     file "objects\missile.rif"
  40.     name "missile"
  41. }
  42.  
  43. shape Shp_Missile_Plus
  44. {
  45.     file "objects\missile plus.rif"
  46.     name "missile plus"
  47. }
  48.  
  49. shape Shp_Enemy_Missile
  50. {
  51.     file "objects\enemy missile.rif"
  52.     name "missile"
  53. }
  54.  
  55. shape Shp_Enemy_Missile_Plus
  56. {
  57.     file "objects\enemy missile plus.rif"
  58.     name "missile plus"
  59. }
  60. projectile Prj_Missile
  61. {
  62.     gravity        yes // is this missile affected by gravity
  63.     damage        23 // in strength points
  64.     blast        23 // proximity damage (not yet supported)?
  65.     blast range    3
  66.     hit_light    Lit_Missile    // just for the explosion
  67.     sound        grenade sound
  68.     max range    4000
  69. }
  70.  
  71. projectile Prj_Missile_Plus
  72. {
  73.     gravity        no // is this missile affected by gravity
  74.     damage        27 // in strength points
  75.     blast        25 // proximity damage (not yet supported)?
  76.     blast range    3
  77.     hit_light    Lit_Missile    // just for the explosion
  78.     sound        grenade sound
  79.     max range    4000
  80. }
  81.  
  82. projectile Prj_Enemy_Missile
  83. {
  84.     gravity        yes // is this missile affected by gravity
  85.     damage        23 // in strength points
  86.     blast        23 // proximity damage (not yet supported)?
  87.     blast range    3
  88.     hit_light    Lit_Missile    // just for the explosion
  89.     sound        grenade sound
  90.     max range    4000
  91. }
  92.  
  93. projectile Prj_Enemy_Missile_Plus
  94. {
  95.     gravity        no // is this missile affected by gravity
  96.     damage        27 // in strength points
  97.     blast        25 // proximity damage (not yet supported)?
  98.     blast range    3
  99.     hit_light    Lit_Missile    // just for the explosion
  100.     sound        grenade sound
  101.     max range    4000
  102. }
  103. role Rol_Missile : Rol_DefaultProjectile
  104. {
  105.     pgen        Pgn_Missile
  106.  
  107.     shape        Shp_Missile
  108.  
  109.     projectile    Prj_Missile
  110.  
  111.     identifier    "missile"
  112.  
  113.     limit        256        //Bang
  114. }
  115.  
  116. role Rol_Missile_Plus : Rol_DefaultProjectile
  117. {
  118.     pgen        Pgn_Missile
  119.  
  120.     shape        Shp_Missile_Plus
  121.  
  122.     projectile    Prj_Missile_Plus
  123.  
  124.     identifier    "missile plus"
  125.  
  126.     limit        320            // homing(64) + Bang (256)
  127. }
  128.  
  129. role Rol_Enemy_Missile : Rol_DefaultProjectile
  130. {
  131.     pgen        Pgn_Missile
  132.  
  133.     shape        Shp_Enemy_Missile
  134.  
  135.     projectile    Prj_Enemy_Missile
  136.  
  137.     identifier    "enemy missile"
  138.  
  139.     limit        256        //Bang
  140. }
  141.  
  142. role Rol_Enemy_Missile_Plus : Rol_DefaultProjectile
  143. {
  144.     pgen        Pgn_Missile
  145.  
  146.     shape        Shp_Enemy_Missile_Plus
  147.  
  148.     projectile    Prj_Enemy_Missile_Plus
  149.  
  150.     identifier    "enemy missile plus"
  151.  
  152.     limit        320            // homing(64) + Bang (256)
  153. }
  154. // MISSILE LAUNCHER
  155. ammo
  156. {
  157.     weapon type        missile launcher
  158.     ammo type        missile basic
  159.  
  160.     round time        4
  161.     reload time        5
  162.     life timer        0
  163.     magazine size        5
  164.     sound            grenade launcher sound
  165.  
  166.     file            "User Interface/CommWheel01.RIF"    // command wheel icon
  167.     name            "sub ammo miss ra"
  168.  
  169.     projectile        Rol_Missile // what it fires
  170.     firing speed    25 // m/s
  171. }
  172. ammo
  173. {
  174.     weapon type        missile launcher
  175.     ammo type        missile plus
  176.  
  177.     round time        4
  178.     reload time        5
  179.     life timer        0
  180.     magazine size        1
  181.     sound            grenade launcher sound
  182.  
  183.     file            "User Interface/CommWheel01.RIF"    // command wheel icon
  184.     name            "sub ammo miss rb"
  185.  
  186.     projectile        Rol_Missile_Plus // what it fires
  187.     firing speed    15 // m/s
  188. }
  189.  
  190. ///ENEMY MISSILE LAUNCHER///
  191.  
  192. ammo
  193. {
  194.     weapon type        enemy missile launcher
  195.     ammo type        missile basic
  196.  
  197.     round time        4
  198.     reload time        5
  199.     life timer        0
  200.     magazine size    5
  201.     sound            grenade launcher sound
  202.  
  203.     file            "User Interface/CommWheel01.RIF"    // command wheel icon
  204.     name            "sub ammo miss ra"
  205.  
  206.     projectile        Rol_Enemy_Missile // what it fires
  207.     firing speed    25 // m/s
  208. }
  209. ammo
  210. {
  211.     weapon type        enemy missile launcher
  212.     ammo type        missile plus
  213.  
  214.     round time        4
  215.     reload time        5
  216.     life timer        0
  217.     magazine size    1
  218.     sound            grenade launcher sound
  219.  
  220.     file            "User Interface/CommWheel01.RIF"    // command wheel icon
  221.     name            "sub ammo miss rb"
  222.  
  223.     projectile        Rol_Enemy_Missile_Plus // what it fires
  224.     firing speed    15 // m/s
  225. }
  226. ////////////////////////////////////////////////////////////////////////////////////
  227.  
  228. shape Shp_MissileLauncher_Pickup
  229. {
  230.     file "objects\missile launcher pickup a.rif"
  231.     name "missile launcher pickup a"
  232. }
  233.  
  234. hierarchy Hcy_MissileLauncher_Inventory_Pickup
  235. {
  236.     file "objects\missile launcher.rif"
  237.     name "missile launcher"
  238.     hotspot none
  239. }
  240.  
  241. character Chr_MissileLauncher_Pickup : Chr_Default
  242. {
  243.     turning speed   0    // this is in revolutions per second
  244.     walking speed   0    // this is in animation cycles per second
  245.     weapon            missile launcher
  246.     strength        10    // initial strength points
  247.     aim                0
  248.     aggression        0.41    // 4 = weapon pickup
  249. }
  250.  
  251. role Rol_MissileLauncher_Pickup : Rol_DefaultRobot
  252. {
  253.     shape            Shp_MissileLauncher_Pickup
  254.  
  255.     inventory shape    Hcy_MissileLauncher_Inventory_Pickup
  256.  
  257.     character        Chr_MissileLauncher_Pickup
  258.  
  259.     identifier        "missile_launcher"
  260.  
  261.     destructibility    Des_Explode
  262.  
  263.     ai                pickup
  264.  
  265.     armour            25
  266.  
  267.     limit            11
  268.  
  269.     description        missile launcher description
  270.  
  271.     pickup name        missile launcher pickup
  272. }
  273.  
  274. ////////////////////////////////////////////////////////////////////////////////////
  275.  
  276. // end wrapper - for preventing multiple or recursive inclusions
  277. #endif // !INCLUDED_MISSILE_LAUNCHER_GSH